<%@ page language="java" pageEncoding="UTF-8"
	errorPage="/ui/defaultException.jsp"%>
<%@include file="/ui/tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
	<form>
		<c:forEach var="flight" items="${flights }" varStatus="statu">
			<div class="trip-step4-editform-form ">
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-title">航班${statu.count }</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">航 班：</div>
					<div class="trip-step4-editform-form-input340">
						<select name="back" class="select340" data-type="trigger">
							<option value="0"
								<c:if test="${flight.back eq 0 }">selected="selected"</c:if>>去程</option>
							<option value="1"
								<c:if test="${flight.back eq 1 }">selected="selected"</c:if>>回程</option>
						</select>
					</div>
					<div
						class="trip-step4-editform-form-name paddingleft9 textalignright">航空公司：</div>
					<div class="trip-step4-editform-form-input340">

						<div style="position: relative;" class="editbox">
							<select class="select340" name="airlineId">
								<c:forEach var="air" items="${list }">
									<option value="${air.friendItemId }"
										<c:if test="${flight.airlineId eq air.friendItemId}">selected="selected"</c:if>>${air.friendItemName}</option>
								</c:forEach>
							</select> <input name="airline" data-type="range" data-tip="航班公司不可以为空!"
								data-required="true"
								style="position: absolute; width: 320px; height: 28px;line-height:30px; left: 1px; top: 1px; border-bottom: 0px; border-right: 0px; border-left: 0px; border-top: 0px;">
						</div>
					</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">航 班 号：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="flightNo" data-type="range"
							value="${flight.flightNo }" data-tip="航班号不可以为空,最多16个字符!"
							data-required="true" data-max="16" class="input340" />
					</div>
					<div
						class="trip-step4-editform-form-name paddingleft9 textalignright">舱
						位：</div>
					<div class="trip-step4-editform-form-input340">
						<select name="space" class="select340"  data-type="trigger">
							<option value="头等舱"
								<c:if test="${flight.space == '头等舱' }">selected="selected"</c:if>>头等舱</option>
							<option value="商务舱"
								<c:if test="${flight.space == '商务舱' }">selected="selected"</c:if>>商务舱</option>
							<option value="经济舱"
								<c:if test="${flight.space == '经济舱' }">selected="selected"</c:if>>经济舱</option>
						</select>
					</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">出发城市：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="departureCity" data-type="range"
							value="${flight.departureCity }" data-tip="出发城市不可以为空,最多32个字符!"
							data-required="true" data-max="32" class="input340" />
					</div>
					<div
						class="trip-step4-editform-form-name paddingleft9 textalignright">到达城市：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="arriveCity" data-type="range"
							value="${flight.arriveCity }" data-tip="达到城市不可以为空,最多32个字符!"
							data-required="true" data-max="32" class="input340" />
					</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">出发机场：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="departureAirport"
							value="${flight.departureAirport }" data-type="range"
							data-tip="出发机场不可以为空,最多32个字符!" data-required="true" data-max="32"
							class="input340" />
					</div>
					<div
						class="trip-step4-editform-form-name paddingleft9 textalignright">到达机场：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="arriveAirport" data-type="range"
							value="${flight.arriveAirport }" data-tip="到达机场不可以为空,最多32个字符!"
							data-required="true" data-max="32" class="input340" />
					</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">出发时间：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="departureTime"
							value="<fmt:formatDate value='${flight.departureTime }' pattern='yyyy/MM/dd HH:mm:ss'/>"
							data-type="range" data-tip="出发时间不可以为空!" data-required="true"
							class="input230 flightDate" />
					</div>
					<div
						class="trip-step4-editform-form-name  paddingleft9 textalignright">到达时间：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="arriveTime"
							value="<fmt:formatDate value='${flight.arriveTime }' pattern='yyyy/MM/dd HH:mm:ss'/>"
							data-type="range" data-tip="到达时间不可以为空!" data-required="true"
							class="input230 flightDate" /> 
						<input type="hidden" name="flightId" value="${flight.flightId }" />
					</div>
				</div>
			</div>
		</c:forEach>
		<input type="hidden" name="tripId" value="${tripId }" />
		</form>
		<div class="flight_template" style="display: none;">
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-title">航班一</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">航 班：</div>
					<div class="trip-step4-editform-form-input340">
						<select name="back" class="select340"  data-type="trigger">
							<option value="0" selected="selected" >去程</option>
							<option value="1" >回程</option>
						</select>
					</div>
					<div
						class="trip-step4-editform-form-name paddingleft9 textalignright">航空公司：</div>
					<div class="trip-step4-editform-form-input340">

						<div style="position: relative;" class="editbox">
							<select class="select340" name="airlineId">
								<c:forEach var="air" items="${list }">
									<option value="${air.friendItemId }" >${air.friendItemName}</option>
								</c:forEach>
							</select> <input name="airline" data-type="range" data-tip="航班公司不可以为空!"
								data-required="true"
								style="position: absolute; width: 320px; height: 28px;line-height:30px; left: 1px; top: 1px; border-bottom: 0px; border-right: 0px; border-left: 0px; border-top: 0px;">
						</div>
					</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">航 班 号：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="flightNo" data-type="range"
							 data-tip="航班号不可以为空,最多16个字符!"
							data-required="true" data-max="16" class="input340" />
					</div>
					<div
						class="trip-step4-editform-form-name paddingleft9 textalignright">舱
						位：</div>
					<div class="trip-step4-editform-form-input340">
						<select name="space" class="select340"  data-type="trigger">
							<option value="头等舱" >头等舱</option>
							<option value="商务舱" selected="selected" >商务舱</option>
							<option value="经济舱" >经济舱</option>
						</select>
					</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">出发城市：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="departureCity" data-type="range"
							  data-tip="出发城市不可以为空,最多32个字符!"
							data-required="true" data-max="32" class="input340" />
					</div>
					<div
						class="trip-step4-editform-form-name paddingleft9 textalignright">到达城市：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="arriveCity" data-type="range"
							  data-tip="达到城市不可以为空,最多32个字符!"
							data-required="true" data-max="32" class="input340" />
					</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">出发机场：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="departureAirport"
							  data-type="range"
							data-tip="出发机场不可以为空,最多32个字符!" data-required="true" data-max="32"
							class="input340" />
					</div>
					<div
						class="trip-step4-editform-form-name paddingleft9 textalignright">到达机场：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="arriveAirport" data-type="range"
							  data-tip="到达机场不可以为空,最多32个字符!"
							data-required="true" data-max="32" class="input340" />
					</div>
				</div>
				<div class="trip-step4-editform-form-row">
					<div class="trip-step4-editform-form-name">出发时间：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="departureTime"  
							data-type="range" data-tip="出发时间不可以为空!" data-required="true"
							class="input340 flightDate" />
					</div>
					<div
						class="trip-step4-editform-form-name  paddingleft9 textalignright">到达时间：</div>
					<div class="trip-step4-editform-form-input340">
						<input type="text" name="arriveTime" 
							data-type="range" data-tip="到达时间不可以为空!" data-required="true"
							class="input340 flightDate" /> 
					</div>
				</div>
				<input type="hidden" name="flightId" value="" />
			</div>
		<div class="trip-step4-editform-form-row">
			<div class="trip-step4-rightbtnadd">
				<input type="button" class="btn12030" value="添加航班" />
			</div>
		</div>
</body>
</html>